package com.surenpi.jenkins.client.util;

import org.apache.http.Header;
import org.apache.http.HttpResponse;

public final class ResponseUtils {
   private ResponseUtils() {
   }

   public static String getJenkinsVersion(final HttpResponse response) {
      Header[] hdrs = response.getHeaders("X-Jenkins");
      return hdrs.length == 0 ? "" : hdrs[0].getValue();
   }
}
